package com.teach.sys.dto;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

import org.hibernate.validator.constraints.Length;

import lombok.Data;

/**  <pre>
 * Copyright 2022 jlzhou.top Inc. All rights reserved.
 * Warning: this content is only for internal circulation of the company.
 *          It is forbidden to divulge it or use it for other commercial purposes.
 * </pre>
 * @author J.L.Zhou
 * @since 2022年11月03日 09:43:08
 * @version 1.0
 */
@Data
public class UserRegDto {

  @NotBlank(message = "手机号码不能为空")
  @Pattern(regexp = "^1\\d{10}$",message = "手机号码不正确")
  private String userTel;
  @NotBlank(message = "密码不能为空")
  @Length(max = 20,min = 2,message = "密码必须由2-20个字符组成")
  private String userPwd;
  @NotBlank(message = "姓名必填")
  private String userName;
  private String userImg;
  
}
